﻿#pragma once
#include "afxdialogex.h"


// CCheckClientDlg 对话框

class CCheckClientDlg : public CDialog
{
	DECLARE_DYNAMIC(CCheckClientDlg)

public:
	CCheckClientDlg(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CCheckClientDlg();

	// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DLG_CLIENT_CHECK };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	CEdit m_sPaperNum;
	CEdit m_nNum;
	CEdit m_nName;
	CEdit m_nSex;
	CEdit m_nRoomNum;
	CEdit m_nTimeIn;
	//	CEdit m_nTimeOut;
	CEdit m_nPrepayment;
	CEdit m_nRealPayment;
	CComboBox m_combSales;
	CEdit m_nDescription;
	CEdit m_nChargedPayment;
	// 数据集对象
	_RecordsetPtr m_pRecordSet;
	afx_msg void OnBnClickedSearch();
	CButton m_bCheck;
	CDateTimeCtrl m_tOutTime;
	afx_msg void OnSelchangeSale();
	virtual BOOL OnInitDialog();
	afx_msg void OnSaveClient();

	struct SalesSTC {
		int code;
		CString name;
		double rate;
	};

	SalesSTC* saleSTC_Ptr;
	CEdit m_nFrom;
};
